All Questions
Tagged with autocompleteshell
68 questions
0votes
0answers
36views
How to know which completion function is being called?
I want to type somethingTabTab and know exactly which completion function gets called, so that I can use that function for completion of aliases. This is to solve the following problem: git push -d ...
1vote
1answer
34views
Autocomplection with description in zsh
General overview This question complete this other one. I try to set an autocomplete for --test parameter who should suggest a list of possible values (Here “foo” and “bar”). Until theire, it pretty ...
1vote
1answer
38views
zsh autocompletion for parametre value
General overview Here is my auto complexion file: _triumphum_complete() { _arguments \ '(- 1 *)'{-h,--help}'[show help options]' \ '(- 1 *)--tui[Run the game selection interface]' \ '(- 1 *)'{-r,...
1vote
1answer
57views
zsh completion for custom script: URL + optional parameters
I have zsh completion for custom script, where one parameter must be URL (ie, string) and then there are several optional parameters: --AAA --BBB --CCC: _arguments -S : \ '--AAA' \ '--BBB' \ ...
1vote
1answer
39views
zsh completion for umount: limit completion to one argument
when I use zsh completion for the umount command: umount /mnt/t<TAB> it completes the mounted filesystem /mnt/tmp. But when I accidentally press tab too many times, it tries to be too helpful, ...
2votes
1answer
102views
zsh completion: complete from predefined list
My zsh script takes following arguments: ./script --connect server --foo 3 --bar 5 name --foo and --bar take integers, name is the only non-option argument, and --connect should complete from ...
1vote
1answer
66views
How to disable "long descriptions" of commands in ZSH
I have a program named fhome that provides shell completion for Zsh: $ fhome <tab> config -- Manage system configuration event -- Manage events help h -- Shows a list of commands or ...
1vote
1answer
149views
zsh completion: complete --options for custom script
I have zsh completion rule for custom script. My script can take zero or more options (starting with -) and zero or more arbitrary strings (patterns): _arguments -S : \ '--foo' \ '--bar' \ ...
1vote
2answers
81views
zsh completion: complete block devices in /dev
for my script, I need to complete block devices in /dev, so that when I do my_script.sh <TAB> it will complete /dev/ and offer me all disks that are listed in /dev (not in subdirectories). So ...
3votes
1answer
182views
zsh completion: duplicate commands
Lets say I have an alias for grep. When I use zsh completion, it will offer grep twice (once as command, once as alias): gr<TAB> grep grep I found I can use ignored-patterns specifically for ...
0votes
0answers
191views
Zsh: make single file selection smart, stylish, and functionally correct (highlights, completions below cursor, etc)
I would like to have a near-flawless "single file selector" with zsh. So far I haven't seen one in questions as they tend to focus on zle settings for one's command line. Let's say we are ...
1vote
1answer
241views
Fish completion that depends on other flags
I have a command, that can connect to remote machines and so the completion should be based on which machine the user provided. That means that if the user pass -D DEVICE_ID I want the completion to ...
6votes
1answer
1kviews
zsh completion for make: only complete targets from Makefile
When I am in a directory with Makefile, and I use zsh completion for make: make <TAB> it completes two sets of completions: the targets from the Makefile files in current directory I only ...
2votes
2answers
221views
Fish shell reports "math: Error: Missing operator" on tab completion
I noticed the error this morning, but I don't think I have changed anything last night, so I am very confused right now. Perhaps I updated some utilities on my system and it somehow broke the back ...
0votes
0answers
155views
Disable Bash completion for a single environmental variable
Suppose I have an environmental variable $SAVE_DIR=/etc/ used to return to a saved directory (here /etc/) from any Bash shell. Typing cd $SAV[Tab] expands to cd $SAVE_DIR which is quite convenient. ...